<html>
<head>
<title>probomania</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style></head>
<body background="images/back.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (probomania.psd) -->
<table id="Table_01" align="center" width="901" height="901" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="4">
			<img src="images/probomania_01.gif" width="582" height="154" alt=""></td>
		<td colspan="5" background="images/probomania_02.gif"><table width="100%" >
          <tr>
            <td><p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p align="right"><span class="style1"><?php @session_start(); if( isset($_SESSION['email'])){ echo " <a href=\"logout.php\" >logout </a>" ;} else {echo " <a href=\"reg_user.php\" > register</a>" ; }?></span></p></td>
          </tr>
        </table></td>
		<td>
			<img src="images/spacer.gif" width="1" height="154" alt=""></td>
	</tr>
	<tr>
		<td colspan="9">
			<img src="images/probomania_03.gif" width="900" height="30" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="30" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/probomania_04.gif" width="297" height="162" alt=""></td>
		<td colspan="2" rowspan="3" bgcolor="#FFFFFF"><?php 
if ( isset($_SESSION['email'])){
include("sql.php");
$query="select name from login where email='".$_SESSION['email']."'  ";
$result=mysql_query($query);

if (!mysql_query($query))
  {
  die('Error: ' . mysql_error());
  }
$row = mysql_fetch_array($result);

 echo "<div align=\"centre\" ><h3>Welcome $row[0],<BR><br>You are sucessfully loged in ,<br><a href=\"prob_quiz.php\" >Click here </a> to continue</div>" ;}
else
{if(isset($_GET['w'])){ echo " username and passsword do not match <BR> "; }	echo "<form method=\"POST\" action=\"login.php\">
			<p>Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : <input type=\"text\" name=\"T1\" size=\"20\"> <br>Password 
			: <input type=\"password\" name=\"T2\" size=\"20\"><br><input type=\"submit\" value=\"Submit\" name=\"B1\"></p>
		</form><br> ";
	echo " <a href=\"reg_user.php\" > Register Here</a>" ;	 }
?></td>
		<td colspan="4">
			<img src="images/probomania_06.gif" width="301" height="162" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="162" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="images/probomania_07.gif" width="123" height="477" alt=""></td>
		<td bgcolor="#FFFFFF"><img src="site icons/instructions.png" width="75" height="75" border="0" usemap="#Map"><br>
<img src="site icons/quiz.png" width="75" height="75" border="0" usemap="#Map2">
<img src="site icons/leader.png" width="75" height="75" border="0" usemap="#Map3"></td>
		<td rowspan="3">
			<img src="images/probomania_09.gif" width="97" height="477" alt=""></td>
		<td colspan="2" rowspan="3">
			<img src="images/probomania_10.gif" width="101" height="477" alt=""></td>
		<td bgcolor="#FFFFFF"><?php @include ("sql.php");
$query="select count(email) from login ;";
$result=mysql_query($query,$db);
$row = mysql_fetch_row($result);
echo " There are currently $row[0] players registered";
?>			</td>
		<td rowspan="3">
			<img src="images/probomania_12.gif" width="129" height="477" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="232" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="images/probomania_13.gif" width="77" height="245" alt=""></td>
		<td rowspan="2">
			<img src="images/probomania_14.gif" width="71" height="245" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="230" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/probomania_15.gif" width="302" height="15" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="1" height="15" alt=""></td>
	</tr>
	<tr>
		<td colspan="6" background="images/probomania_16.gif"><?php include("footer.php"); ?>S&nbsp;</td>
		<td colspan="3">
			<img src="images/probomania_17.gif" alt="" width="227" height="77" border="0" usemap="#Map4"></td>
		<td>
			<img src="images/spacer.gif" width="1" height="77" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="123" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="77" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="97" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="285" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="17" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="74" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="27" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="71" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="129" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<!-- End ImageReady Slices -->

<map name="Map"><area shape="rect" coords="1,2,74,74" href="instructions.php">
</map>
<map name="Map2"><area shape="rect" coords="1,1,74,75" href="prob_quiz.php">
</map>
<map name="Map3"><area shape="rect" coords="2,2,75,74" href="leaderboard.php">
</map>
<map name="Map4"><area shape="rect" coords="1,1,227,76" href="http:\\cognitos.org">
</map></body>
</html>